package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.GoodsPriceOrgan;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;


/**
*
**/
@Mapper
public interface GoodsPriceOrganMapper extends BaseMapper<Long, GoodsPriceOrgan>,PageQueryMapper<Long,GoodsPriceOrgan> {

    /**
    * 逻辑删除
    * @param id
    *
    */
    int deleteByIdLogical(@Param("id")Long id);


    /**
     * 查询引用数
     * @param goodsPriceOrgan
     * @return
     */
    int queryQuantityOfRef(@Param("entity")GoodsPriceOrgan goodsPriceOrgan);


    int deleteByGoodsPrice(@Param("entity")GoodsPriceOrgan goodsPriceOrgan);
}